[id].vue 28 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853
  1. <template>
  2. <div>
  3. <!-- 页面头部 -->
  4. <HomePageHead></HomePageHead>
  5. <HomePageNavigation></HomePageNavigation>
  6. <!-- 商圈详情 -->
  7. <div class="topicInfoBox">
  8. <div class="inner">
  9. <!-- 详情头部 -->
  10. <div class="infoHead phone_none">
  11. <div class="left">
  12. <div class="userInfo left">
  13. <el-badge value="楼主" class="item" type="warning">
  14. <img v-if='dataInfo.avatar' :src="dataInfo.avatar" alt="">
  15. <img v-else src='http://img.bjzxtw.org.cn/master/bjzxtw/public/topic/Rectangle.png'
  16. alt="">
  17. </el-badge>
  18. <span>{{ dataInfo.nickname }}</span>
  19. </div>
  20. <div class="headContent left">
  21. <h2>{{ dataInfo.title }}</h2>
  22. <p v-show="dataInfo.group_name">
  23. 群聊:
  24. <span>{{ dataInfo.group_name }}</span>
  25. <button @click="joinGroup">加入群聊</button>
  26. </p>
  27. </div>
  28. </div>
  29. <div class="right">
  30. <div class="one">
  31. <span v-for="item in typeList" :key="index">
  32. <span v-if="dataInfo.type == item.value" class="one">{{ item.label }}</span>
  33. </span>
  34. </div>
  35. <p>{{ dataInfo.updated_at }}</p>
  36. </div>
  37. </div>
  38. <div class="pc_none">
  39. <h2 class="phone_h2">{{ dataInfo.title }}</h2>
  40. <div class="phone_box_1">
  41. <div class="phone_tag_box">
  42. <span v-for="item in typeList" :key="index">
  43. <span v-if="dataInfo.type == item.value"
  44. class="phone_tag_box_text">{{ item.label }}</span>
  45. </span>
  46. </div>
  47. <span class="phone_time">{{ dataInfo.updated_at }}</span>
  48. </div>
  49. <div class="phone_box_2">
  50. <el-badge class="phone_img_box" type="warning">
  51. <img v-if='dataInfo.avatar' :src="dataInfo.avatar" alt="">
  52. <img v-else src='http://img.bjzxtw.org.cn/master/bjzxtw/public/topic/Rectangle.png' alt="">
  53. </el-badge>
  54. <span class="phone_name">
  55. {{ dataInfo.nickname }}
  56. </span>
  57. </div>
  58. <div class="phone_box_3" v-show="dataInfo.group_name">
  59. <div class="phone_group_label"> 群聊: </div>
  60. <span class="phone_group_name">
  61. {{ dataInfo.group_name }}
  62. </span>
  63. <button class="phone_group_btn" @click="joinGroup">加入群聊</button>
  64. </div>
  65. </div>
  66. <!-- 详情页 文本+图片 -->
  67. <div class="infoContent" v-show="dataInfo.content">
  68. <div v-html="dataInfo.content"></div>
  69. </div>
  70. <div class="infoContent1" v-show="!dataInfo.content">
  71. <img src="http://img.bjzxtw.org.cn/master/bjzxtw/public/topic/Document_empty.png" alt="">
  72. <span>可以看看大家的互动哦~</span>
  73. </div>
  74. <!-- 详情页评论 -->
  75. <div class="comment">
  76. <h3>评论</h3>
  77. <div class="commentList" v-for="item in replyList" v-show="page_total != 0">
  78. <div class="left">
  79. <img v-if='item.avatar' :src="item.avatar" alt="">
  80. <img v-else src='http://img.bjzxtw.org.cn/master/bjzxtw/public/topic/Rectangle.png' alt="">
  81. <span class="name">{{ item.nickname }} : </span>
  82. </div>
  83. <div class="center">
  84. <span class="context">{{ item.content }}</span>
  85. </div>
  86. <div class="right">
  87. <span class="time">{{ item.created_at }}</span>
  88. <!-- <span>回复</span> -->
  89. </div>
  90. </div>
  91. <div class="comment_empty" v-show="page_total == 0">
  92. <img src="../../public/topic/message_empty.png" alt="">
  93. <span>暂无评论</span>
  94. </div>
  95. </div>
  96. <!-- 分页 -->
  97. <div class="paginationBox" v-show="page_total != 0">
  98. <el-pagination background layout="prev, pager, next" :total="page_total" prev-text="上一页"
  99. next-text="下一页" :default-page-size="pageSize" @change="changePage" />
  100. </div>
  101. </div>
  102. </div>
  103. <div class="message">
  104. <div class="inner">
  105. <input v-model="content" placeholder="快来回复吧~" type="text" class="messageInput">
  106. <button class="btn" @click="addReply">确定</button>
  107. </div>
  108. </div>
  109. <!-- 页面底部 -->
  110. <HomeFoot1></HomeFoot1>
  111. </div>
  112. </template>
  113. <script setup>
  114. //1.引用模块 start ---------------------------------------->
  115. //使用ref和reactive动态变量
  116. import { ref, reactive, onMounted } from 'vue'
  117. import { useRoute } from 'vue-router';
  118. //使用官方ssr请求模块
  119. import { useNuxtApp, useFetch } from '#app'
  120. //使用element-plus组件
  121. import { ElPagination, ElBadge, ElInput, ElMessage, ElMessageBox } from 'element-plus';
  122. // axios请求
  123. const nuxtApp = useNuxtApp();
  124. const axios = nuxtApp.$axios;
  125. const { $webUrl, $CwebUrl, $BwebUrl } = useNuxtApp()
  126. //1.引用模块 end ---------------------------------------->
  127. // 定义响应式数据
  128. const seoData = ref({
  129. title: '商圈',
  130. description: '默认描述',
  131. keywords: '默认关键词',
  132. image: 'https://example.com/default-image.jpg'
  133. });
  134. // 在 onMounted 钩子中获取数据
  135. onMounted(() => {
  136. seoData.value.title = '商圈';
  137. seoData.value.description = '默认描述';
  138. seoData.value.keywords = '默认关键词';
  139. })
  140. //2.页面数据 start ---------------------------------------->
  141. const dataInfo = ref({})
  142. const groupId = useState("groupId", () => '')
  143. const replyList = useState("replyList", () => []) //评论列表
  144. //分页
  145. const page = ref(1)
  146. const pageSize = ref(5)
  147. let page_total = ref(0)
  148. const content = ref('')
  149. //2.页面数据 end ---------------------------------------->
  150. //3.获取商圈详情 start ---------------------------------------->
  151. const route = useRoute();
  152. const id = route.params.id; // 获取传递的 id 参数
  153. //页码发生改变
  154. const changePage = (val) => {
  155. console.log(val);
  156. page.value = val
  157. getTopicReply()
  158. }
  159. // 商圈信息
  160. const getTopicInfo = () => {
  161. let data = new FormData()
  162. data.append('id', id)
  163. axios.post('chat/getTopicInfo', data).then(res => {
  164. console.log('商圈信息', res);
  165. dataInfo.value = res.data
  166. groupId.value = res.data.group_id
  167. console.log(groupId.value);
  168. })
  169. }
  170. // 回复商圈 列表
  171. const getTopicReply = () => {
  172. let data = new FormData()
  173. data.append('id', id)
  174. data.append('page', page.value)
  175. data.append('page_size', pageSize.value)
  176. axios.post('chat/getTopicReply', data).then(res => {
  177. console.log('回复商圈列表 ', res);
  178. replyList.value = res.data.data
  179. // page_total.value = res.data.total
  180. page_total.value = res.data.total
  181. console.log("replyList", replyList);
  182. })
  183. }
  184. //5.获取分类和状态 start ---------------------------------------->
  185. const listData = useState("listData", () => [])//商圈列表
  186. const typeList = useState("typeList", () => [])//商圈分类
  187. const topicType = () => {
  188. axios.post('/chat/topicType').then(response => {
  189. console.log(111222333)
  190. console.log(response.data);
  191. // console.log(1);
  192. typeList.value = response.data;
  193. })
  194. }
  195. const topicStatus = () => {
  196. axios.post('chat/topicStatus').then(response => {
  197. console.log(response);
  198. })
  199. }
  200. onMounted(() => {
  201. getTopicInfo(); //商圈信息
  202. getTopicReply(); //回复商圈列表
  203. topicType();
  204. topicStatus();
  205. })
  206. //加入群聊
  207. const joinGroup = () => {
  208. ElMessageBox.confirm(
  209. '加入群聊后,页面跳转至后台群聊页面',
  210. '是否加入群聊?',
  211. {
  212. confirmButtonText: '是',
  213. cancelButtonText: '否',
  214. center: true,
  215. }
  216. ).then(() => {
  217. console.log('groupId.value', groupId.value);
  218. let data = new FormData()
  219. data.append('group_id', groupId.value)
  220. axios.post('chat/joinGroup', data).then(res => {
  221. console.log('加入群聊 ', res);
  222. if (res.code == 0 && res.message !== '已加入群') {
  223. ElMessage.error(res.message)
  224. } else if (res.code == 0 && res.message == '已加入群') {
  225. ElMessage({
  226. message: res.message,
  227. type: 'success',
  228. })
  229. setTimeout(() => {
  230. // window.open($BwebUrl + '/#/hall?userurl=' + $webUrl, '_blank');
  231. window.open($BwebUrl + '/#/businessDistrict?userurl=' + $webUrl, '_blank');
  232. //window.open('http://admindev.bjzxtw.org.cn/#/hall', '_blank');
  233. }, 1000)
  234. } else if (res.code == 200) {
  235. ElMessage({
  236. message: '加入成功',
  237. type: 'success',
  238. })
  239. setTimeout(() => {
  240. // window.open($BwebUrl + '/#/hall?userurl=' + $webUrl, '_blank');
  241. window.open($BwebUrl + '/#/businessDistrict?userurl=' + $webUrl, '_blank');
  242. //window.open('http://admindev.bjzxtw.org.cn/#/hall', '_blank');
  243. }, 1000)
  244. }
  245. })
  246. }).catch(() => {
  247. ElMessage({
  248. type: 'error',
  249. message: '已取消',
  250. })
  251. })
  252. }
  253. // 回复商圈
  254. const addReply = () => {
  255. let data = new FormData()
  256. data.append('id', id)
  257. data.append('content', content.value)
  258. axios.post('chat/addReply', data).then(res => {
  259. console.log('回复商圈 ', res);
  260. if (res.code == 0) {
  261. ElMessage.error(res.message)
  262. getTopicReply();
  263. } else if (res.code == 200) {
  264. ElMessage({
  265. message: '回复成功',
  266. type: 'success',
  267. })
  268. content.value = ''
  269. getTopicReply();
  270. }
  271. })
  272. }
  273. //3.获取商圈详情 end ---------------------------------------->
  274. //seo
  275. useSeoMeta({
  276. title: "商圈" + "_" + "三农资讯网_全国政务信息一体化应用平台",
  277. meta: [
  278. { name: 'description', content: "三农资讯网以服务于党和国家各级职能部门三农政务资讯发布及政务公开信息公示为基点,为全国县级以上各级党政机关及其职能部门配置各自公开独立网络发布平台。主要频道有:三农政务资讯,农科资讯,农资购销,农产购销,农贸资讯,三农致富信息,农村文化生活,三农政策法规,三农之窗,三农调查,三农服务,三农知识,农民工,打假维权等。三农资讯网打造最具影响力的三农信息发布平台,并成为最具权威的三农资讯网。_三农资讯网-测试专用_全国政务信息一体化应用平台", tagPriority: 10 },
  279. { name: 'keywords', content: "三农资讯,农业,三农,三农在线,农业新闻,三农资讯网_三农资讯网-测试专用_全国政务信息一体化应用平台", tagPriority: 10 },
  280. { name: 'viewport', content: 'width=device-width,initial-scale=1,user-scalable=no', tagPriority: 10 }
  281. ]
  282. });
  283. </script>
  284. <style lang="less" scoped>
  285. .topicInfoBox {
  286. .inner {
  287. width: 1200px;
  288. margin: 0 auto;
  289. //信息头部
  290. .infoHead {
  291. height: 200px;
  292. padding: 65px 0 60px 40px;
  293. border-bottom: 1px solid rgba(0, 0, 0, 0.10);
  294. box-sizing: border-box;
  295. >.left {
  296. .userInfo {
  297. margin-right: 90px;
  298. .item {
  299. margin-top: -5px;
  300. margin-right: -5px;
  301. :deep(.el-badge__content.is-fixed) {
  302. position: absolute;
  303. right: calc(1px + var(--el-badge-size) / 2);
  304. top: 0;
  305. transform: translateY(-31%) translateX(79%);
  306. z-index: var(--el-index-normal);
  307. }
  308. img {
  309. width: 66px;
  310. height: 66px;
  311. vertical-align: middle;
  312. border-radius: 50%;
  313. }
  314. }
  315. span {
  316. margin-left: 15px;
  317. font-family: Microsoft YaHei, Microsoft YaHei;
  318. font-weight: 400;
  319. font-size: 18px;
  320. color: #333333;
  321. }
  322. }
  323. .headContent {
  324. h2 {
  325. width: 750px;
  326. height: 56px;
  327. line-height: 28px;
  328. display: -webkit-box;
  329. -webkit-box-orient: vertical;
  330. -webkit-line-clamp: 2;
  331. overflow: hidden;
  332. text-overflow: ellipsis;
  333. word-break: break-all;
  334. font-family: Microsoft YaHei, Microsoft YaHei;
  335. font-weight: bold;
  336. font-size: 20px;
  337. color: #333333;
  338. margin-bottom: 26px;
  339. }
  340. >p {
  341. font-family: Microsoft YaHei, Microsoft YaHei;
  342. font-weight: 400;
  343. font-size: 16px;
  344. color: #333333;
  345. button {
  346. width: 86px;
  347. height: 32px;
  348. background-color: #028e21;
  349. color: #fff;
  350. border: none;
  351. margin-left: 100px;
  352. }
  353. }
  354. }
  355. }
  356. >.right {
  357. position: relative;
  358. div {
  359. position: absolute;
  360. right: 0;
  361. top: 0;
  362. width: 71px;
  363. height: 32px;
  364. line-height: 32px;
  365. text-align: center;
  366. background-color: #d9f0d6;
  367. margin-bottom: 29px;
  368. font-family: Microsoft YaHei, Microsoft YaHei;
  369. font-weight: 400;
  370. font-size: 16px;
  371. color: #33B023;
  372. }
  373. .one {
  374. color: #FFAA33;
  375. background-color: #fbebd5;
  376. }
  377. .two {
  378. color: #33B023;
  379. background-color: #d5ecd2;
  380. }
  381. .three {
  382. color: #666;
  383. background-color: #ebebeb;
  384. }
  385. p {
  386. width: 150px;
  387. text-align: right;
  388. position: absolute;
  389. top: 62px;
  390. right: 0;
  391. }
  392. }
  393. }
  394. // 有详情信息
  395. .infoContent {
  396. width: 1196px;
  397. overflow: hidden;
  398. padding: 30px 46px;
  399. font-family: Microsoft YaHei, Microsoft YaHei;
  400. font-size: 20px;
  401. line-height: 40px;
  402. box-sizing: border-box;
  403. div {
  404. word-wrap: break-word;
  405. /* 强制长单词或 URL 换行 */
  406. overflow-wrap: break-word;
  407. /* 现代推荐用法,等同于 word-wrap */
  408. white-space: pre-wrap;
  409. /* 保留空白字符并允许自动换行 */
  410. word-break: break-all;
  411. /* 强制在任意字符处换行 */
  412. }
  413. }
  414. .leftBottom::v-deep p {
  415. width: 1200px;
  416. white-space: pre-wrap;
  417. }
  418. //没有详情信息
  419. .comment_empty,
  420. .infoContent1 {
  421. height: 300px;
  422. line-height: 260px;
  423. text-align: center;
  424. img {
  425. width: 78px;
  426. height: 78px;
  427. vertical-align: -25px;
  428. vertical-align: middle;
  429. margin-right: 20px;
  430. }
  431. span {
  432. font-family: Microsoft YaHei, Microsoft YaHei;
  433. font-weight: bold;
  434. font-size: 26px;
  435. color: #CCCCCC;
  436. }
  437. }
  438. //评论
  439. .comment {
  440. h3 {
  441. height: 100px;
  442. padding-top: 30px;
  443. box-sizing: border-box;
  444. border-bottom: 1px solid #E1E1E1;
  445. font-family: Microsoft YaHei, Microsoft YaHei;
  446. font-weight: 400;
  447. font-size: 22px;
  448. color: #000000;
  449. }
  450. .commentList {
  451. border: 1px solid #E1E1E1;
  452. background-color: #fafafa;
  453. margin-top: 20px;
  454. padding: 30px 30px;
  455. box-sizing: border-box;
  456. display: flex;
  457. align-items: flex-start;
  458. justify-content: space-between;
  459. .left {
  460. width: 400px;
  461. margin-right: 30px;
  462. display: flex;
  463. justify-content: space-between;
  464. img {
  465. width: 52px;
  466. height: 52px;
  467. border-radius: 50%;
  468. vertical-align: middle;
  469. margin-right: 15px;
  470. }
  471. span {
  472. height: 52px;
  473. line-height: 22px;
  474. padding-top: 10px;
  475. }
  476. .name {
  477. width: 120px;
  478. font-family: Microsoft YaHei, Microsoft YaHei;
  479. font-weight: 400;
  480. font-size: 16px;
  481. color: #333333;
  482. margin-right: 15px;
  483. white-space: nowrap;
  484. overflow: hidden;
  485. text-overflow: ellipsis;
  486. display: block;
  487. }
  488. }
  489. .center {
  490. .context {
  491. width: 700px;
  492. margin-right: 40px;
  493. display: -webkit-box;
  494. -webkit-box-orient: vertical;
  495. -webkit-line-clamp: 2;
  496. overflow: hidden;
  497. text-overflow: ellipsis;
  498. word-break: break-all;
  499. font-family: Microsoft YaHei, Microsoft YaHei;
  500. font-weight: bold;
  501. font-size: 16px;
  502. color: #333333;
  503. }
  504. }
  505. .right {
  506. .time {
  507. display: block;
  508. width: 200px;
  509. font-family: Microsoft YaHei, Microsoft YaHei;
  510. font-weight: 400;
  511. font-size: 16px;
  512. color: #999999;
  513. margin-right: 30px;
  514. }
  515. span {
  516. font-family: Microsoft YaHei, Microsoft YaHei;
  517. font-weight: 400;
  518. font-size: 16px;
  519. color: #333333;
  520. }
  521. }
  522. }
  523. }
  524. }
  525. }
  526. //评论回复
  527. .message {
  528. width: 1200px;
  529. margin: 0 auto 20px;
  530. padding: 0px 25px;
  531. box-sizing: border-box;
  532. height: 145px;
  533. line-height: 145px;
  534. background-color: #ecf5ee;
  535. .inner {
  536. .messageInput {
  537. width: 1000px;
  538. height: 67px;
  539. outline: none;
  540. border: 1px solid #E1E1E1;
  541. background-color: #fafafa;
  542. font-family: Microsoft YaHei, Microsoft YaHei;
  543. font-weight: 400;
  544. font-size: 18px;
  545. color: #666;
  546. padding: 0 20px;
  547. box-sizing: border-box;
  548. }
  549. .btn {
  550. width: 115px;
  551. height: 40px;
  552. border: none;
  553. background-color: #028e21;
  554. color: #fff;
  555. border-radius: 6px;
  556. margin-left: 36px;
  557. font-family: Microsoft YaHei, Microsoft YaHei;
  558. font-weight: 400;
  559. font-size: 16px;
  560. }
  561. }
  562. }
  563. //分页
  564. .paginationBox {
  565. display: flex;
  566. justify-content: center;
  567. margin-top: 60px;
  568. margin-bottom: 90px;
  569. // 鼠标移入后字体颜色
  570. :deep(.el-pagination:hover) {
  571. color: #139609;
  572. }
  573. :deep(.el-pagination.is-background .btn-next),
  574. :deep(.el-pagination.is-background .btn-prev) {
  575. width: 70px;
  576. height: 34px;
  577. margin: 0px 10px;
  578. border-radius: 4px;
  579. }
  580. :deep(.el-pagination.is-background .el-pager li) {
  581. margin: 0px 10px;
  582. width: 38px;
  583. height: 34px;
  584. border-radius: 4px;
  585. }
  586. :deep(.el-pagination.is-background .btn-next.is-active),
  587. :deep(.el-pagination.is-background .btn-prev.is-active),
  588. :deep(.el-pagination.is-background .el-pager li.is-active) {
  589. background-color: #028e21;
  590. color: #fff;
  591. }
  592. }
  593. </style>
  594. <style lang="less" scoped>
  595. @media screen and (min-width:801px) {
  596. /*pc*/
  597. .pc_none {
  598. display: none;
  599. }
  600. }
  601. @media screen and (max-width:800px) {
  602. /*ipad_phone*/
  603. .topicInfoBox .inner {
  604. width: 92%;
  605. margin: 0px auto;
  606. }
  607. .phone_h2 {
  608. margin-top: 11px;
  609. font-size: 20px;
  610. line-height: 22px;
  611. display: block;
  612. color: #333;
  613. }
  614. .phone_box_1 {
  615. overflow: hidden;
  616. width: 100%;
  617. padding-bottom: 2px;
  618. border-bottom: solid 1px #E8E7E6;
  619. margin-top: 8px;
  620. line-height: 22px;
  621. min-height: 22px;
  622. }
  623. .phone_tag_box {
  624. height: 22px;
  625. float: left;
  626. }
  627. .phone_tag_box_text {
  628. float: left;
  629. height: 22px;
  630. line-height: 22px;
  631. font-size: 12px;
  632. margin-right: 8px;
  633. color: #999;
  634. }
  635. .phone_time {
  636. height: 22px;
  637. line-height: 22px;
  638. color: #999;
  639. float: left;
  640. font-size: 12px;
  641. float: left;
  642. padding-left: 10px;
  643. position: relative;
  644. }
  645. .phone_time::before {
  646. content: '';
  647. position: absolute;
  648. left: 0;
  649. top: 50%;
  650. width: 2px;
  651. height: 2px;
  652. background: #999;
  653. }
  654. .phone_box_2 {
  655. overflow: hidden;
  656. margin: 10px 0;
  657. padding: 4px 0;
  658. display: flex;
  659. }
  660. .phone_img_box {
  661. height: 38px;
  662. width: 38px;
  663. border-radius: 50%;
  664. margin-right: 6px;
  665. }
  666. .phone_img_box img {
  667. display: block;
  668. height: 100%;
  669. width: 100%;
  670. border-radius: 50%;
  671. }
  672. .phone_name {
  673. display: block;
  674. line-height: 38px;
  675. height: 38px;
  676. color: #333;
  677. font-size: 16px;
  678. flex: 1;
  679. word-break: keep-all;
  680. white-space: nowrap;
  681. overflow: hidden;
  682. text-overflow: ellipsis;
  683. }
  684. .phone_box_3 {
  685. overflow: hidden;
  686. margin-top: 10px;
  687. background: #ccc;
  688. background: rgba(204, 204, 204, .2);
  689. padding: 10px 0px;
  690. display: flex;
  691. justify-content: space-between;
  692. }
  693. .phone_group_label {
  694. height: 33px;
  695. line-height: 33px;
  696. color: #333;
  697. font-size: 14px;
  698. margin-left: 8px;
  699. float: left;
  700. }
  701. .phone_group_btn {
  702. float: right;
  703. height: 28px;
  704. line-height: 28px;
  705. background: rgba(72, 157, 151, .1);
  706. color: #489d97;
  707. font-size: 12px;
  708. padding: 0px 6px;
  709. text-align: center;
  710. border: 0;
  711. margin: 3px 8px 0 11vw;
  712. }
  713. .phone_group_name {
  714. display: block;
  715. line-height: 33px;
  716. height: 33px;
  717. color: #333;
  718. font-size: 14px;
  719. flex: 1;
  720. word-wrap: break-word;
  721. overflow-wrap: break-word;
  722. white-space: pre-wrap;
  723. word-break: break-all;
  724. }
  725. .topicInfoBox .inner .infoContent {
  726. width: 100%;
  727. padding: 0;
  728. margin-top: 22px;
  729. }
  730. .topicInfoBox .inner .infoContent,
  731. .topicInfoBox .inner .infoContent * {
  732. font-size: 16px;
  733. line-height: 22px;
  734. }
  735. .topicInfoBox .inner .infoContent /deep/img {
  736. display: block;
  737. width: 100%;
  738. }
  739. .topicInfoBox .inner .comment h3 {
  740. height: 50px;
  741. font-size: 18px;
  742. line-height: 50px;
  743. padding: 0;
  744. margin-top: 20px;
  745. }
  746. .ul_2 {
  747. margin-top: 10px;
  748. }
  749. .li_2 {
  750. overflow: hidden;
  751. width: 100%;
  752. margin-bottom: 10px;
  753. border: solid 1px #e7e7e7;
  754. box-sizing: border-box;
  755. .li_2_head_box {
  756. background: #fafafa;
  757. padding: 10px 10px;
  758. width: 100%;
  759. box-sizing: border-box;
  760. border-bottom: solid 1px #e7e7e7;
  761. }
  762. .li_2_img_box {
  763. width: 33px;
  764. height: 33px;
  765. overflow: hidden;
  766. margin-right: 8px;
  767. border-radius: 50%;
  768. float: left;
  769. }
  770. .li_2_img_box img {
  771. display: block;
  772. height: 100%;
  773. width: 100%;
  774. }
  775. .li_2_head {
  776. line-height: 33px;
  777. height: 33px;
  778. color: #333;
  779. font-size: 16px;
  780. word-break: keep-all;
  781. white-space: nowrap;
  782. overflow: hidden;
  783. text-overflow: ellipsis;
  784. }
  785. .li_2_text {
  786. margin-top: 8px;
  787. line-height: 22px;
  788. color: #333;
  789. font-size: 16px;
  790. overflow: hidden;
  791. box-sizing: border-box;
  792. padding: 0px 10px;
  793. width: 100%;
  794. word-wrap: break-word;
  795. overflow-wrap: break-word;
  796. white-space: pre-wrap;
  797. word-break: break-all;
  798. }
  799. .li_2_time {
  800. margin: 8px 0px;
  801. line-height: 22px;
  802. height: 22px;
  803. color: #555;
  804. font-size: 14px;
  805. padding: 0px 10px;
  806. width: 100%;
  807. }
  808. }
  809. .paginationBox {
  810. margin: 30px auto;
  811. }
  812. .message {
  813. width: 100%;
  814. text-align: center;
  815. height: auto;
  816. padding: 33px 0px;
  817. line-height: normal;
  818. }
  819. .message .inner {
  820. width: 92%;
  821. margin: 0px auto;
  822. }
  823. .message .inner .messageInput {
  824. width: 100%;
  825. line-height: 33px;
  826. height: 33px;
  827. padding: 0px 8px;
  828. font-size: 14px;
  829. border-radius: 6px;
  830. }
  831. .message .inner .btn {
  832. line-height: 33px;
  833. height: 33px;
  834. width: auto;
  835. margin-left: 2vw;
  836. padding: 0px 6px;
  837. font-size: 14px;
  838. display: none;
  839. }
  840. /deep/.el-pagination .is-last .is-active {
  841. background-color: #489d97 !important;
  842. }
  843. /deep/.el-pagination.is-background .el-pager li {
  844. margin: 0px 4px !important;
  845. }
  846. .ul_2_phone_none {
  847. display: none !important;
  848. }
  849. .phone_none {
  850. display: none;
  851. }
  852. }
  853. </style>